enyo.kind({
	name: "AssessmentUI_PanelBase",
	kind: enyo.Control,
	classes: "onyx hpit-bg",
	parentWnd: null,
	
	published: {
		caption: "",
		submitLeftCaption: "",
		submitRightCaption: ""
	},
	
	create: function(){
		this.inherited(arguments);
		if(this.parentWnd != null) {
			this.parentWnd.$.header.setCaption(this.caption);
			this.parentWnd.$.footer.setSubmitLeftCaption(this.submitLeftCaption);	
			this.parentWnd.$.footer.setSubmitRightCaption(this.submitRightCaption);	
		}
	},
	
	showMsg: function(msg) {
		this.parentWnd.showMsg(msg);
	},
	
	showScrim: function() {
		this.parentWnd.showScrim();
	},
	
	hideScrim: function() {
		this.parentWnd.hideScrim();
	}
});
